<form class="form-inline" action="<?=printUrl('Main','adminSubScore')?>" name="subScore" id="subScore">
<div style="width: 1000px;" class="table-responsive">
  <table border="1" cellspacing="0" class="table table-hover table-bordered table-condensed" style="width: 1400px;">
    <thead>
      <tr>
        <th class="bg-primary text-center" colspan="8">专营店基本信息</th>
        <th class="bg-primary text-center" colspan="11">费用使用管控表</th>
      </tr>
      <tr>
        <th class="bg-primary text-center">地区</th>
        <th class="bg-primary text-center">小区</th>
        <th class="bg-primary text-center">专营店</th>
        <th class="bg-primary text-center">所在城市</th>
        <th class="bg-primary text-center">专营店等级</th>
        <th class="bg-primary text-center">填写人职位</th>
        <th class="bg-primary text-center">填写人</th>
        <th class="bg-primary text-center">联系方式</th>

        <th class="bg-primary text-center">双月额度</th>
        <th class="bg-primary text-center">订单目标</th>
        <th class="bg-primary text-center">留资目标</th>
        <th class="bg-primary text-center">预算申请费用</th>
        <th class="bg-primary text-center">预算审核费用</th>
        <th class="bg-primary text-center">订单实际达成</th>
        <th class="bg-primary text-center">留资实际达成</th>
        <th class="bg-primary text-center">订单目标达成率</th>
        <th class="bg-primary text-center">留资目标达成率</th>
        <th class="bg-primary text-center">结算申请费用</th>
        <th class="bg-primary text-center">结算审核费用</th>
      </tr>
    </thead>
    <tbody>
      <?php
      foreach ($procList as $k => $v) {
      ?>
      <tr>
        <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['area'] : ''?></td>
        <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['spsarea'] : ''?></td>
        <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['storeName'] : ''?></td>
        <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['city'] : ''?></td>
        <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['level'] : ''?></td>
        <td class="text-center"><?=$v['userJob']?></td>
        <td class="text-center"><?=$v['userName']?></td>
        <td class="text-center"><?=$v['userContact']?></td>
        <td class="text-center"><?=(float)$v['fixedMoney']?></td>
        <td class="text-center"><?=(float)$v['orderTarget']?></td>
        <td class="text-center"><?=(float)$v['capitalTarget']?></td>
        <td class="text-center"><?=(float)$v['budgetApplyTotal']?></td>
        <td class="text-center"><?=(float)$v['budgetAuditTotal']?></td>
        <td class="text-center"><?=(float)$v['orderActual']?></td>
        <td class="text-center"><?=(float)$v['capitalActual']?></td>
        <td class="text-center"><?=(float)$v['orderReachRate']?>%</td>
        <td class="text-center"><?=(float)$v['capitalReachRate']?>%</td>
        <td class="text-center"><?=(float)$v['settleApplyTotal']?></td>
        <td class="text-center"><?=(float)$v['settleAuditTotal']?></td>
      </tr>
      <?php } ?>
      <?php
      $total = getArrayColumnTotal($procList,
          array('fixedMoney','orderTarget','capitalTarget','budgetApplyTotal','budgetAuditTotal','orderActual','capitalActual','orderReachRate','capitalReachRate','settleApplyTotal','settleAuditTotal'),1);
      ?>
      <tr>
        <td class="text-center" colspan="2">全国</td>
        <td class="text-center" colspan="6">合计</td>
        <td class="text-center"><?=$total['fixedMoney']?></td>
        <td class="text-center"><?=$total['orderTarget']?></td>
        <td class="text-center"><?=$total['capitalTarget']?></td>
        <td class="text-center"><?=$total['budgetApplyTotal']?></td>
        <td class="text-center"><?=$total['budgetAuditTotal']?></td>
        <td class="text-center"><?=$total['orderActual']?></td>
        <td class="text-center"><?=$total['capitalActual']?></td>
        <td class="text-center"><?=$total['orderTarget'] ? round(($total['orderActual']/$total['orderTarget'])*100, 2) : 0?>%</td>
        <td class="text-center"><?=$total['capitalTarget'] ? round(($total['capitalActual']/$total['capitalTarget'])*100, 2) : 0?>%</td>
        <td class="text-center"><?=$total['settleApplyTotal']?></td>
        <td class="text-center"><?=$total['settleAuditTotal']?></td>
      </tr>
    </tbody>
  </table>
</div>
</form>